package com.base.app_core.model.dto;

import android.os.Parcel;
import android.os.Parcelable;

public class CosVo implements Parcelable {

    private String secretId;
    private String secretKey;
    private String bucketName;
    private String regionName;

    public String getSecretId() {
        return secretId;
    }

    public void setSecretId(String secretId) {
        this.secretId = secretId;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    @Override
    public String toString() {
        return "CosVo{" +
                "secretId='" + secretId + '\'' +
                ", secretKey='" + secretKey + '\'' +
                ", bucketName='" + bucketName + '\'' +
                ", regionName='" + regionName + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.secretId);
        dest.writeString(this.secretKey);
        dest.writeString(this.bucketName);
        dest.writeString(this.regionName);
    }

    public CosVo() {
    }

    protected CosVo(Parcel in) {
        this.secretId = in.readString();
        this.secretKey = in.readString();
        this.bucketName = in.readString();
        this.regionName = in.readString();
    }

    public static final Parcelable.Creator<CosVo> CREATOR = new Parcelable.Creator<CosVo>() {
        @Override
        public CosVo createFromParcel(Parcel source) {
            return new CosVo(source);
        }

        @Override
        public CosVo[] newArray(int size) {
            return new CosVo[size];
        }
    };
}
